from pydantic import BaseModel

class UserInfo(BaseModel):
    id: int | None = None
    code: str | None = None
    login_name: str | None = None
    emp_no: str | None = None
    mobile_phone: str | None = None
    email: str | None = None
    dingding_idmid: str | None = None
    dingding_userid: str | None = None

class TokenDto(BaseModel):
    access_token: str | None
    refresh_token: str | None
    user_info: UserInfo | None

class TokenReq(BaseModel):
    username: str
    password: str
